package cn.texous.demo.dos.config.mongo;

import lombok.Data;

import java.util.Date;

/**
 * insert description here
 *
 * @author leven
 * @since 2019/7/17 18:38
 */
@Data
public class MongoBaseEntity {

    /***/
    public static final String _ID = "_id";
    /***/
    public static final String STATUS = "status";
    /***/
    public static final String CREATED = "created";
    /***/
    public static final String UPDATED = "updated";
    /***/
    public static final String CREATED_BY = "createdBy";
    /***/
    public static final String UPDATED_BY = "updatedBy";

    @MongoFixed
    private String _id;
    private Integer status;
    @MongoFixed
    private Date created;
    private Date updated;
    @MongoFixed
    private String createdBy;
    private String updatedBy;
}
